home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000319_news@newsmaster….columbia.edu _Mon Sep 8 13:12:42 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA07591
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 8 Sep 1997 13:12:42 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA10914
  7.     for kermit.misc@watsun; Mon, 8 Sep 1997 13:12:41 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!newsfeed.nacamar.de!oleane!calvacom!not-for-mail
  9. From: do11@calva.net (Dominique Ottello)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: It is not a bug but a suggestion for improvement of MSK315
  12. Date: Mon, 08 Sep 1997 15:28:21 GMT
  13. Organization: PCatHome&Me
  14. Lines: 49
  15. Message-ID: <34141941.323800@news.calvacom.fr>
  16. Reply-To: do11@calva.net
  17. NNTP-Posting-Host: parb25.calvacom.fr
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Newsreader: Forte Agent 1.5/32.451
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7642
  23.  
  24.  
  25. I have a suggestion for improvement of MSK315 :
  26.  
  27. There are two different variables that give result of input and minput
  28. command :
  29.  
  30.    \v(instatus)
  31.      Status of most recent INPUT or MINPUT command:
  32.       -1 for not initialized yet
  33.        0 for success
  34.        1 for timed out
  35.        2 for user level Control-C interrupt
  36.        4 for connection lost
  37.  
  38.    \v(minput)
  39.      Shows which search pattern was matched by the MINPUT command, which
  40.      is a script INPUT command with one or more match patterns.  The 
  41.      variable is 0 if no match was obtained.
  42.  
  43. If \v(instatus) is more than 0 it is failure
  44. if \v(minput) is more than 0 it is success
  45.  
  46. It is not coherent.
  47.  
  48. I suggest that \v(minput) not only gives the matched pattern but also gives
  49. the status of the command :
  50.  -4 Connection Lost
  51.  -3 User Level Control-C interrupt
  52.  -2 Timed Out
  53.  -1 Not initialized yet
  54.   0 No match
  55.   1 ..... XX number of matched pattern
  56.  
  57. With this, only one switch structure is sufficient to test all cases :
  58.  
  59. Switch \v(minput) {
  60.  :-4,management of connection lost,break
  61.  :-3,management of User Interrupt,break
  62.  :-2,management of Timeout,break
  63.  :-1,management of not initialized,break
  64.  :0,management of no match,break
  65.  :1,management of match 1,break
  66.  :2.........
  67.  }
  68.  
  69. Comments please.
  70.  
  71. Best regards,
  72.  
  73. == Dominique Ottello == do11@calva.net == Paris == France ==